<!-- 首页的头部-->
<div class="head clear <if condition='$isIndex eq 1'> indexhead</if>">
    <div class="head-wrapper wrapper-lg">
        <!-- <ul class="header-nav nav clear v-align float-ul fl">
            <li>
                <a href="javascript:;" class="dia-click" data-sub="true" data-for=".tag-list"><span>探索</span><b class="icon icon-list-arrow-up fr"></b></a>
                <div class="head-explor tag-list" style="display:none">
                    <i class="icon-trangle"></i>
                    <i class="close close-explor"></i>
                    <!-- 探索的列表-- />
                    <volist name="tags" id="tag">
                        <span><a href="{:U('Search/tag?keyword='.$tag['title'])}" title="{$tag.title}">{$tag.title}</a></span>
                    </volist>
                </div>
            </li>
            <li><a target="_blank" href="{:U('Download/index')}" title="APP下载"><span>APP下载</span></a></li>
            <li><a href="{:U('Index/stroll')}" title="逛一逛"><span>逛一逛</span></a></li>
        </ul> -->
        <div class="fl padd-lr">
           <!--  <div class="top-search btn bor">
                <form action="{:U('Search/index')}" method="post">
                    <input type="text" name="keyword" value="{$serachstr}" placeholder="搜索">
                    <i class="search-btn"></i>
                </form>
            </div> -->
        </div>
        <div class="logo"><a class="logo-a" href="{:U('Index/square')}" style="display:block" title="66tv"><img style="width:100%" src="__PUBLIC__/Home/images/logo.png"></a></div>
        <div class="head-right fr">
            <if condition="ACTION_NAME neq 'nickname'">
                <notempty name="userInfo">
                    <div class="login-pass v-align">
                        <div class="login-cons-username v-align in-block">
                            <a href="{:U('Ucenter/index')}" title="{$userInfo.nickname}">{$userInfo.nickname}</a>
                            <i class="icon icon-list-arrow-up dia-click cur" data-sub="true" data-for=".setting-list"></i>
                        </div>
                        <a href="{:U('Ucenter/index')}">
                            <div class="cover cover-login-avartor box-radius in-block">
                                <img class="lazy-img" data-src="{$userInfo.avatar|default="__ROOT__/Public/Home/images/avatar.jpg"}" alt="">
                            </div>
                        </a>
                        <ul class="head-explor setting-list" style="display: none">
                            <i class="icon-trangle"></i>
                            <li class="padd10 "><a href="{:U('Ucenter/index')}" title="个人中心">个人中心</a></li>
                            <li class="padd10 " style="{:showMenu('MyVideo/choose_game', " display ", "display:none ")}"><a href="{:U('MyVideo/choose_game')}" title="发布视频">发布视频</a></li>
                            <li class="padd10 "><a href="{:U('User/logout')}">退出</a></li>
                        </ul>
                    </div>
                    <else />
                    <if condition="ACTION_NAME neq 'login' AND ACTION_NAME neq 'register' ">
                        <a class="login-btn dia-click" data-for=".pop-login">登录</a>
                        <a class="login-btn " href="{:U('User/register')}">注册</a>
                    </if>
                </notempty>
            </if>
        </div>
    </div>
</div>
<empty name="userInfo">
    <!-- 登录注册页面 -->
    <div class="pop-ui pop-login">
        <div class="login">
            <a href="javascript:;" class="close"></a>
            <h2>登录账号</h2>
            <div class="ui-login">
                <form action="{:U('User/login')}" class="login-form" on-finish="updateVer()">
                    <ul class="v-align">
                        <li class="box"><span class="ui-icon ui-icon-phone"></span><input type="text" name="mobile" placeholder="手机号" /><i class="icon icon-delete"></i></li>
                        <li class="box mar-t20"><span class="ui-icon ui-icon-pass"></span><input type="password" name="password" placeholder="登录密码" /><i class="icon icon-delete"></i></li>
                        <li class="mar-tb20 clear verify-dis" <lt name="Think.session.LOGIN_ERROR_TIMES" value="3"> style="display:none"</lt>>
                            <div class="ui-input-veifiry fl box">
                                <span class="ui-icon ui-icon-pass"></span>
                                <input type="password" name="verify" placeholder="输入验证码" />
                            </div>
                            <div class="ui-input-btn fr box verify-img">
                                <img src="{:U('User/verify')}">
                            </div>
                        </li>
                        <li class="mar-tb15 input-remember">
                            <div class="remember">
                             <input class="in-block remember-auto fl" id="remember" type='checkbox' name='auto' checked="checked" value=1> <label class="v-align fl next-remember" for="remember">下次自动登录</label>
                            </div>
                        </li>
                        <li class=""><button class="btn btn-sure btn-login">确认</button></li>
                        <li class="mar-t20">
                            <div class="ui-forget-pass clear">
                                <a href="{:U('User/retrieve')}" class="fl">忘记密码？</a>
                                <a class="v-align fr " href="{:U('User/register')}"><b>注册账号</b><b class="ui-icon ui-icon-regesiter in-block"></b></a>
                            </div>
                        </li>
                    </ul>
                </form>
            </div>
        </div>
    </div>
</empty>

